home *** CD-ROM | disk | FTP | other *** search
/ IBM InfoROM for OS/2 Beta 1995 January / IBM InfoROM for OS2 Beta 1-1995.ISO / testcert / storage / function / scsi / add / read10.scr < prev    next >
Encoding:
Text File  |  1994-08-15  |  1.6 KB  |  59 lines

  1. * Reads the most recent data from the addressed
  2. * logical blocks. Cache control bits can be set.
  3.  
  4. @THREAD READ10.LOG
  5. @NEWALIAS SADD SCSIADD.GRA
  6. @IMPORT SCSICOM.SCR
  7. SADD DD_OPEN
  8.  
  9. * 0=Async mode, 1=Sync mode
  10. SADD SET MODE=1
  11.  
  12. * Command completion timeout (Secs)
  13. * 0=the assigned value is the default set by the driver,
  14. * -1=the assigned value is infinite.
  15. SADD SET TIMEOUT=0
  16.  
  17. * Name for paramblock
  18. SADD SET LABEL = "READ CAPACITY"
  19.  
  20. SADD READCAPACITY
  21.  
  22. * 1(Cache if possible),  0(Need not cache it)
  23.   SADD SET CACHE_IF_POSSIBLE = 1
  24.  
  25. * 1(Force access form media), 0(May access from cache)
  26.   SADD SET FORCE_MEDIA_ACCESS = 0
  27.  
  28. * 32bit starting logical block addr
  29. SADD SET LOGICAL_BLOCK_ADDR = 1000
  30.  
  31. *STARTING LOGICAL BLOCK ADDR (READ)
  32. SADD RESPONSE $PROMPT="STARTING LOGICAL BLK ADDR(READ) : " $RESPONSE=LOGICAL_BLOCK_ADDR $PAUSE=15
  33.  
  34. *  0 = indicates that the logical block address field
  35. *      specifies the first logical block of the range of
  36. *      logical blocks to be operated on by this command.
  37. *  1 = indicates that the logical block address field is
  38. *      a two's complement displacement.  This -ve or +ve
  39. *      displacement shall be added to the logical block
  40. *      address last accessed on the logical unit to form the
  41. *      logical block address for this command.
  42. SADD SET ADDR_MODE=0
  43.  
  44. * No. of contiguous logical blocks to be read
  45. SADD SET NUM_BLOCKS = 1
  46.  
  47. *NO. OF CONTIGOUS LOGICAL BLOCKS TO BE READ 
  48. *SADD RESPONSE $PROMPT="# OF LOGICAL BLOCKS : " $RESPONSE=NUM_BLOCKS $PAUSE=15
  49.  
  50. * Name for paramblock
  51. SADD SET LABEL = "READ10"
  52. SADD READ10
  53.  
  54. SADD SET LOGICAL_BLOCK_ADDR = 40
  55. SADD READ10
  56.  
  57. SADD DD_CLOSE
  58.  
  59.